package com.core.visaInfo.dao;

import java.util.List;

import com.core.guarantee.dto.GuaranteeSearchCondition;
import com.core.guarantee.pojo.Guarantee;
import com.core.visaInfo.dto.VisaInfoDto;
import com.core.visaInfo.dto.VisaInfoSearchCondition;
import com.core.visaInfo.pojo.VisaInfo;

public interface VisaInfoDao {
	
	void add (VisaInfo visaInfo);
	
	void update (VisaInfo visaInfo);	
	
	void del(VisaInfo visaInfo);
	
	VisaInfo getById(Long id);
	
	Integer searchCnt(VisaInfoSearchCondition vsc);
	
	List<VisaInfoSearchCondition> searchPojoList(VisaInfoSearchCondition vsc);
	
//	List<VisaInfoDto>searchDtoList(VisaInfoSearchCondition vsc);

	void updateState(VisaInfo tempVisaInfo);
//  操作员只能看到自己旅行社的
	List<VisaInfoSearchCondition> searchPojoListByOperator(VisaInfoSearchCondition sc); 	
	Integer searchCntByOperator(VisaInfoSearchCondition sc);
//  招保相关
	void addGuarantee(GuaranteeSearchCondition sc);

	Guarantee getGuaranteeById(GuaranteeSearchCondition sc);

	void updateGuarantee(GuaranteeSearchCondition sc);

	void delGuarantee(Guarantee tempGuarantee);

	List<Guarantee> getGuaranteePojoList(GuaranteeSearchCondition sc);
//	操作员自能看到自己旅行社的
	List<Guarantee> getGuaranteePojoListByOperator(GuaranteeSearchCondition sc);
	int getGuaranteePojoListCntByOperator(GuaranteeSearchCondition sc);
	
	int getGuaranteePojoListCnt(GuaranteeSearchCondition sc);

	void updateGuaranteeState(Guarantee tempGuarantee);
	
	void updateReturnState(Guarantee tempGuarantee);
}
